home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
T-TPUG Old Monthly Disks
/
(c)t8.d64
/
sheet music.c
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
458b
|
25 lines
10 REM MUSIC.LOAD.2
15 IF F=0 THEN F=1:LOAD "SHEET DATA.D",8,1
20 POKE 53281,0:PRINT"":G=13*4096
40 POKE G+29,0:POKE G+39,14:POKE G+28,1
100 B=2*4096+1*256+15*16+0
110 TM=B+6
120 AD=B+7
130 SR=B+8
140 PC=B+9
150 WF=B+10
200 READ T:IF T=0 THEN END
210 READ A,D,S,R,W,P
250 PRINT "[147]PRESS A KEY TO PLAY THE TUNE..."
260 GET A$:IF A$="" GOTO 260
300 POKE TM,T
310 POKE AD,A*16+D
320 POKE SR,S*16+R
330 POKE WF,W
340 POKE PC,P
350 SYS B
400 GOTO 200
500 DATA 70,7,9,0,0,17,0
600 DATA 65,2,7,0,0,33,1
700 DATA 0